import request from '@/utils/request'

const api = {
  addWcUrl: '/base_workcenter/add_wc',
  getWcListUrl: '/base_workcenter/get_wc_list',
  changeWcUrl: '/base_workcenter/change_wc',
}

export async function changeWcApi(params: Map<string, any>) {
  const res = await request({
    url: api.changeWcUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function addWcApi(params: Map<string, any>) {
  const res = await request({
    url: api.addWcUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function getWcListApi(params: Map<string, any>) {
  const res = await request({
    url: api.getWcListUrl,
    method: 'post',
    data: params,
  })
  return res
}
